package cn.njxzc.examples;

class F {
	int f;

	F(int i) {
		f = i;
	}

	F method1() {
		F f1 = new F(f + 5);
		return f1;
	}
}

class Exam3_12 {
	public static void main(String[] args) {
		F f2 = new F(10);
		F f3;
		System.out.println("f2.f=" + f2.f);
		f3 = f2.method1();
		System.out.println("f3.f=" + f3.f);
		f3 = f3.method1();
		System.out.println("f3.f=" + f3.f);
	}

}
